import { Module } from '@nestjs/common';
import { LoginModule } from "./login/login.module";

import { MongooseModule } from '@nestjs/mongoose';


import { MailModule } from './mail/mail.module';
import { TenantModule } from './tenant/tenant.module';
import { FractionModule } from './fraction/fraction.module';
import { ServiceModule } from './services/services.module';
import { AppService } from './app.service';
import { AppController } from './app.controller';



@Module({
  imports: [ServiceModule,
    TenantModule,
    FractionModule,
    MailModule,
    LoginModule,
    MongooseModule.forRoot('mongodb://qhw:123456@39.105.62.145:3001/nest?authSource=nest')],
  controllers: [AppController],
  providers: [
    AppService,
  ],
})
export class AppModule { }
